import { createStore, applyMiddleware } from "redux";

import Thunk from "redux-thunk"; // 允许我们 dispatch() 函数
import rootReducer from "./reducer/index";

const store = createStore(rootReducer, applyMiddleware(Thunk));

export default store;
